package org.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.dto.RoleDTO;
import org.example.dto.UserRoleDTO;
import org.example.entity.Role;
import org.example.vo.ConditionVO;
import org.example.vo.PageResult;
import org.example.vo.RoleVO;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface RoleService extends IService<Role> {

    List<UserRoleDTO> listUserRoles();

    PageResult<RoleDTO> listRoles(ConditionVO conditionVO);

    void saveOrUpdateRole(RoleVO roleVO);

    void deleteRoles(List<Integer> ids);
}
